package cn.desk.commons.entity;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity(name = "sequence")
public class Sequence extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
	private Integer next;
	
	@Override
	public Object getValue() {
		return getId();
	}

	@Override
	public String getDisplayName() {
		return "序列";
	}

	public Integer getNext() {
		return next;
	}

	public void setNext(Integer next) {
		this.next = next;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
